/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package wifitacker;

import Files.Estructura;
import Files.WifiReader;
import java.io.IOException;

/**
 *
 * @author Huchnet
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        WifiReader aWifiReader = new WifiReader("/Users/Huchnet/pactodecaballeros.txt");
        Estructura aEstructura = new Estructura();
        try {
            aEstructura = aWifiReader.getNextObject();
            /*System.out.println("1"+aEstructura.getBuffer().toString());
            aEstructura = aWifiReader.getNextObject();
            System.out.println("2"+aEstructura.getBuffer().toString());
            System.out.println(aEstructura.getChat());*/
            aEstructura.printBuffer();
        } catch (IOException ex) {
            ex.printStackTrace();
        }
        aWifiReader.close();
    }

}
